﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIWindow.Enums;

namespace UIWindow.Services.Context
{
    public class WeighingContext : Lucifer.IDataContext
    {
        public TaskTypes Types { get; set; }
        public ushort AddressSignal { get; set; }
        public ushort AddressComplete { get; set; }
        public ushort AddressResults { get; set; }
        /// <summary>
        /// 变量注液地址
        /// </summary>
        public ushort AddressInjection { get; set; }
        /// <summary>
        /// 条码
        /// </summary>
        public string BarCode { get; set; }
        /// <summary>
        /// 注液前真空
        /// </summary>
        public float VacuumBeforeFilling { get; set; }
        /// <summary>
        /// 注液时真空
        /// </summary>
        public float VacuumDuringFilling { get; set; }
        /// <summary>
        /// 回氦前真空度
        /// </summary>
        public float VacuumBeforeReturningHelium { get; set; }
        /// <summary>
        /// 回氦后真空度
        /// </summary>
        public float VacuumDegreeAfterReturningHelium { get; set; }
        /// <summary>
        /// 注液正压
        /// </summary>
        public float PositivePressure { get; set; }
        /// <summary>
        /// 注液负压
        /// </summary>
        public float NegativePressure { get; set; }
        /// <summary>
        /// 站号
        /// </summary>
        public ushort StationNo { get; set; }
        /// <summary>
        /// 杯号
        /// </summary>
        public ushort CupNumber { get; set; }
        /// <summary>
        /// 循环次数
        /// </summary>
        public ushort Cycles { get; set; }
        /// <summary>
        /// 注液正压时间
        /// </summary>
        public ushort TimePositivePressure { get; set; }
        /// <summary>
        /// 注液负压时间
        /// </summary>
        public ushort TimeNegativePressure { get; set; }

        /// <summary>
        /// 注液正压时间设定值
        /// </summary>
        public ushort TimePositivePressureSetting { get; set; }
        /// <summary>
        /// 注液负压时间设定值
        /// </summary>
        public ushort TimeNegativePressureSetting { get; set; }
        /// <summary>
        /// 注液正压设定值
        /// </summary>
        public float PositivePressureSetting { get; set; }
        /// <summary>
        /// 注液负压设定值
        /// </summary>
        public float NegativePressureSetting { get; set; }
        /// <summary>
        /// 注液前真空设定值
        /// </summary>
        public float VacuumBeforeFillingSetting { get; set; }
        /// <summary>
        /// 注液时真空设定值
        /// </summary>
        public float VacuumDuringFillingSetting { get; set; }
    }
}
